package com.hk.wms.wmssentinelservice8401.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import org.springframework.web.bind.annotation.PathVariable;

/**
 *
 */
public class CustomerBlockHandler {
    public static String customBlockHandler(BlockException e){
        return "限流！！！！！";
    }
    public static String customBlockHandler1(@PathVariable int id, BlockException e){
        return "限流1！！！！！";
    }
    public static String customBlockHandler2(@PathVariable int id, BlockException e){
        return id+"限流1！！！！！";
    }
}
